package com.netty.learn.tcpdemo;

import java.net.ServerSocket;
import java.net.Socket;

public class TcpServer {
	
	public static void main(String[] args) {
		ServerSocket serverSocket;
		try {
			serverSocket = new ServerSocket(8080);
			Socket socket = serverSocket.accept(); //阻塞式方法
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
